package com.zhoupu.file.core.gateway;

import com.zhoupu.file.core.customerconst.ChannelName;
import org.springframework.integration.annotation.MessagingGateway;
import org.springframework.integration.file.FileHeaders;
import org.springframework.messaging.handler.annotation.Header;

/**
 * 文件写入网关
 *
 * @author Zhouyongli
 * @version 2024/09/11 16:05
 **/
@MessagingGateway(defaultRequestChannel = ChannelName.TEXT_IN_CHANNEL)
public interface FileWriterGateway {
    void writeToFile(@Header(FileHeaders.FILENAME) String fileName, String data);
}
